package com.briup.pts.service;

import com.briup.pts.domain.bean.Animal;
import com.briup.pts.domain.vo.AnimalVO;
import com.github.pagehelper.PageInfo;
import jakarta.validation.constraints.NotEmpty;

import java.util.List;

/**
 * @author wy
 * @description
 * @data 2024/11/28  9:19
 */
public interface AnimalService {
    PageInfo<AnimalVO> pageQueryByCondition(
            Integer pageNum, Integer pageSize,
            String aHealthy, String aGender);


    AnimalVO findByAnimalId(String animalId);

    void saveOrUpdate(Animal animal);

    void deleteById(String aAnimalId);

    void deleteByIdAll(@NotEmpty(message = "没有要删除的质检报告") List<String> ids);

    void qrcode(String animalId) throws Exception;
}
